public class Games {

    public static void print(int number) {
        String numberStr = String.valueOf(number);
        if (numberStr.contains("3")) {
            System.out.println(StringConstant.FIZZ);
        } else if (number % 3 == 0 && number % 5 == 0 && number % 7 == 0) {
            System.out.println(StringConstant.FIZZ + StringConstant.BUZZ + StringConstant.WHIZZ);
        } else if (number % 5 == 0 && number % 7 == 0) {
            System.out.println(StringConstant.BUZZ + StringConstant.WHIZZ);
        } else if (number % 3 == 0 && number % 5 == 0) {
            System.out.println(StringConstant.FIZZ + StringConstant.BUZZ);
        } else if (number % 3 == 0 && number % 7 == 0) {
            System.out.println(StringConstant.FIZZ + StringConstant.WHIZZ);
        } else if (number % 7 == 0) {
            System.out.println(StringConstant.WHIZZ);
        } else if (number % 5 == 0) {
            System.out.println(StringConstant.BUZZ);
        } else if (number % 3 == 0) {
            System.out.println(StringConstant.FIZZ);
        } else {
            System.out.println(number);
        }
    }
}
